//
//  DYZCarDetailInfoController.m
//  DYZCars
//
//  Created by 杨瑞 on 16/8/19.
//  Copyright © 2016年 MF. All rights reserved.
//

#import "DYZCarDetailInfoController.h"
#import "DYZDetailInfoCell.h"

@interface DYZCarDetailInfoController ()<UITableViewDataSource>

@end

@implementation DYZCarDetailInfoController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self setupUI];
    // Do any additional setup after loading the view.
}
-(void)setupUI{
    UIBarButtonItem *rightBtn = [[UIBarButtonItem alloc]initWithTitle:@"筛选" style:UIBarButtonItemStylePlain target:nil action:nil];
    self.navigationItem.rightBarButtonItems = @[rightBtn];
    UITableView *selectTableView = [[UITableView alloc]init];
    selectTableView.dataSource = self;
    selectTableView.rowHeight = UITableViewAutomaticDimension;
    selectTableView.estimatedRowHeight = 100;
    [self.view addSubview:selectTableView];
    [selectTableView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.equalTo(self.view);
    }];
    [selectTableView registerNib:[UINib nibWithNibName:@"DYZDetailInfoCell" bundle:nil] forCellReuseIdentifier:@"detailInfoCellid"];
}

#pragma mark - UITableViewDataSource
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return 8;
}
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    DYZDetailInfoCell *cell = [tableView dequeueReusableCellWithIdentifier:@"detailInfoCellid" forIndexPath:indexPath];
    return cell;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
